package com.wtwd.campus.dao;

import com.alibaba.fastjson.JSONObject;
import com.wtwd.campus.entity.SysOrgPermission;
import com.wtwd.campus.entity.SysPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author mjy
 * @date 2021/06/08
 * @description
 */
@Mapper
public interface SysPermissionMapper {

    int saveOrUpdate(@Param("param") JSONObject param);

    int savePermissionBatch(@Param("params") List<JSONObject> params);

    int clear();

    int deleteByNonId(@Param("ids")List<Integer> ids);

    List<SysPermission> listPermissionByIds(List<Integer> ids);

    List<SysPermission> listAllPermission();
}
